﻿namespace YanTableManger.TableData
{
    /// <summary>
    /// 考勤表格式类
    /// </summary>
    class KTableData
    {
        /// <summary>
        /// 工号
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 打卡信息
        /// </summary>
        public HitCard[] HitCards { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <param name="hitCards"></param>
        public KTableData(string id, string name, HitCard[] hitCards)
        {
            Id = id;
            HitCards = hitCards;
            Name = name;
        }

        public KTableData()
        {
            HitCards = new HitCard[31];
        }
    }

    /// <summary>
    /// 打卡状态
    /// </summary>
    public enum HitCard
    {
        /// <summary>
        /// 未打卡
        /// </summary>
        None,

        /// <summary>
        /// 新校区打卡
        /// </summary>
        New,

        /// <summary>
        /// 老校区打卡
        /// </summary>
        Old
    }
}